import React, { component } from 'react';
import BlogDetail from './BlogDetail';
import UserInfo from './UserInfo';
class Blog extends React.Component {
    constructor() {
        super();
        this.state={
            detail:{
                title:"315晚会如期举行",
                time:'2021-3-15 20:00',
                content:"能看得出这是一段内容"
            },
            userInfo:{
                nickName:'Tom'
            }
        }
    }
    render() {
        return (<div>
            <BlogDetail detail={ this.state.detail}></BlogDetail>
            <UserInfo userInfo={this.state.userInfo }></UserInfo>
        </div>)
    }
}
export default Blog